package com.mybatis.basic.entity;

import java.util.List;

/**
 * 分页数据
 * @author 82770
 *
 */
public class PageList {

	//数据总条数
	private int count;
	//总共多少页
	private int pageCount;
	//当前多少页
	private int pageNow;
	//每页显示多少条数据
	private int pageSize;
	//分页数据
	private List<?> list;

	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getPageCount() {
		return (count%pageSize!=0)?count/pageSize+1:count/pageSize;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}
	public int getPageNow() {
		return pageNow;
	}
	public void setPageNow(int pageNow) {
		this.pageNow = pageNow;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public List<?> getList() {
		return list;
	}
	public void setList(List<?> list) {
		this.list = list;
	}
	
	@Override
	public String toString() {
		return "PageList [count=" + count + ", pageCount=" + pageCount + ", pageNow=" + pageNow + ", pageSize="
				+ pageSize + ", list=" + list + "]";
	}

}
